
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--{template "wap_header"}-->
</head>
<body id="orders"> 
<header class="">
                <div class="left-box">
                    <a class="goback" href="javascript:history.back()"><label gaevent="InnerLink|Click|touch/back">返回</label></a>
                </div>
                <h1>我的订单</h1>
</header>
 
<menu>
      <ul>
       <li {if $pay==0} class="current" {/if} gaevent="InnerLink|Click|touch/orders/list/paid" ><a href="wap.php?mod=me&code=order&pay=0">未付款</a></li>
       <li {if $pay==1} class="current" {/if}  gaevent="InnerLink|Click|touch/orders/list/unpaid"  ><a href="wap.php?mod=me&code=order&pay=1">已付款</a></li>
     
  </ul>
</menu>





<div class="body">
{if $order_all}
<!--{loop $order_all $i $value}-->
        <div class="order-box">
        <div class="coupon-list"> <a href="?wap.php?$value['product']['id']">    <img src="{echo imager($value['product']['imgs'][0], IMG_Small)}" width="110" height="72" />  </a>
                               {$value['product']['flag']}<br />

  <ul><li>数量：{$value['productnum']} 总价：￥{echo $value['totalprice']}元{if $value['product']['type']=='stuff'}<br/>(含运费:{$value['expressprice']}元){/if}
  <br/>
  {if $value['refund_process'] == 1}已申请退款
{elseif $value['refund_process'] == 2}退款成功
{elseif $value['refund_process'] == 3}申请退款被拒绝
{elseif $value['status'] != ORD_STA_Normal}
<img src="images/no2.gif" />
{if $value['status'] == ORD_STA_Cancel}
已取消
{elseif $value['status'] == ORD_STA_Overdue}
已过期
{elseif $value['status'] == ORD_STA_Faild}
失败
{elseif $value['status'] == ORD_STA_Refund}
已经退款
{/if}
{/if}
  </li></ul>

               
       
{if $value['process'] == 'WAIT_BUYER_PAY' && $value['pay'] == 0} <p class="c-submit c-small" style="background-color:#FFB4B4;border: 1px solid #B70000;"> <a href="wap.php?mod=buy&code=pay&id={$value['orderid']}">  <input style="background-color:red" type="submit"  value="去付款" /></a></p>{/if} 

{if $value['refund_process'] == 0 && $value['pay'] == 1 && $value['status'] != ORD_STA_Refund}
<p class="c-submit c-small" style="background-color:#FFB4B4;border: 1px solid #B70000;"> <a href="wap.php?mod=refund&oid={$value['orderid']}"> <input style="background-color:red" type="submit"  value="申请退款" /></a></p>
{/if}
 </div> 
 </div>
 <!--{/loop}-->
 
 <table ><tr ><td><p>{~page_moyo()}</p></td></tr></table>
 {else}
 
  <table width="100%"><tr><td width="100%" height="100px" align="center"><p>
  {if $pay==0}  暂无未付款的订单{/if}{if $pay==1}   暂无已付款的订单{/if} 
  
  
</p></td></tr></table>
{/if} 
 
</div>





<!--{template "wap_footer"}-->

</body>
</html>
